<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../../vue.js"></script>
    <style>
        .oneFont{
            font-size: 30px;
        }

        .twoColor{
            color: aqua;
        }

        .three{
            background-color: cornflowerblue;
        }

        .four{
            width: 100px;
            height: 100px;
        }

        .five{
            border-radius: 10px ;
        }

        .six{
            color:darkorchid
        }
        .seven{
            font-size: 100px;
        }
    </style>
</head>
<body>
    <div id="app">
        <p :class="font">这是字体</p>
        <div :class="tuan"></div>
        <div :class="classArr">这是字体2</div>
        <div :class="six?  'twoColor':'six' ">这是字体3</div>
    </div>
    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el:'#app',
            data(){
                return{
                    font:"oneFont",
                    tuan:{
                        three:true,
                        four:true,
                        five:true,
                    },
                    six:false,
                    classArr:['six','seven']
                }
            }
        })
    </script>
</body>
</html>